__author__ = 'daihaibin'

class ModelServerException(Exception):
    pass

class ServiceException(Exception):
    def __init__(self, code, message=None):
        super(ServiceException, self).__init__(message)
        self.code = code